package com.mingyuan.library.infra.lending.patron.exception;

import com.mingyuan.library.domain.common.exception.BusinessException;
import com.mingyuan.library.domain.common.enums.CommonExceptionCodeEnum;

/**
 *
 * 参数校验错误异常
 * @author yangzk
 * @version 1.0.0
 * @date 2022.11.29 09:23
 */
public class ParameterInvalidException extends BusinessException {

    private static final long serialVersionUID = 7602749618910120595L;

    public ParameterInvalidException() {
        super(CommonExceptionCodeEnum.INVALID_PARAMETER);
    }

    public ParameterInvalidException(String message) {
        super(CommonExceptionCodeEnum.INVALID_PARAMETER.getErrCode(), message);
    }

    public ParameterInvalidException(Throwable cause) {
        super(CommonExceptionCodeEnum.INVALID_PARAMETER, cause);
    }

    public ParameterInvalidException(String message, Throwable cause) {
        super(CommonExceptionCodeEnum.INVALID_PARAMETER.getErrCode(), message, cause);
    }

}
